
package study.d_09;

import java.util.Scanner;

public class value2 {
    public static void main(String[] args){
        String name="张三";
        int age=22;
        double length=145.7;
        char a='呵';
        boolean gender=false;
        System.out.println(name);
        System.out.println(age);
        System.out.println(length);
        System.out.println(gender);
        System.out.println(a);

        //Scanner用法
        Scanner m=new Scanner(System.in);
        System.out.println("请输入:");
        int x=m.nextInt();
        System.out.println(x);

        //输入两个数字
        System.out.println("请输入第一个数字");
        int n=m.nextInt();

        System.out.println("请输入第二个数字");
        int j=m.nextInt();
        System.out.println(n+j);

    }
}
